<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- qevent.cpp -->
  <title>TouchPoint Class | Qt GUI 5.14.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.14</a></td><td ><a href="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >TouchPoint</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtgui-index.html">Qt 5.14.2 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">TouchPoint Class</h1>
<span class="small-subtitle">Class TouchPoint is declared in class <a href="qtouchevent.html">QTouchEvent</a>.<br/></span>
<!-- $$$TouchPoint-brief -->
<p>The TouchPoint class provides information about a touch point in a <a href="qtouchevent.html">QTouchEvent</a>. <a href="#details">More...</a></p>
<!-- @@@TouchPoint -->
<p>This class was introduced in Qt 4.6.</p>
<ul>
<li><a href="qtouchevent-touchpoint-members.html">List of all members, including inherited members</a></li>
<li><a href="qtouchevent-touchpoint-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#InfoFlag-enum">InfoFlag</a></b> { Pen, Token }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#InfoFlag-enum">InfoFlags</a></b></td></tr>
</table></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#TouchPoint-2">TouchPoint</a></b>(TouchPoint &amp;&amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSizeF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#ellipseDiameters">ellipseDiameters</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> TouchPoint::InfoFlags </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#flags">flags</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#id">id</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#lastNormalizedPos">lastNormalizedPos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#lastPos">lastPos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#lastScenePos">lastScenePos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#lastScreenPos">lastScreenPos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#pos">pos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#pressure">pressure</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVector&lt;QPointF&gt; </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#rawScreenPositions">rawScreenPositions</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#rotation">rotation</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#scenePos">scenePos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#screenPos">screenPos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#startNormalizedPos">startNormalizedPos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#startPos">startPos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#startScenePos">startScenePos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#startScreenPos">startScreenPos</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::TouchPointState </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#state">state</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointingDeviceUniqueId </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#uniqueId">uniqueId</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVector2D </td><td class="memItemRight bottomAlign"><b><a href="qtouchevent-touchpoint.html#velocity">velocity</a></b>() const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$TouchPoint-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p class="centerAlign"><img src="images/touchpoint-metrics.png" alt="" /></p></div>
<!-- @@@TouchPoint -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$InfoFlag$$$Pen$$$Token -->
<h3 class="flags" id="InfoFlag-enum"><a name="InfoFlag-enum"></a>enum TouchPoint::<span class="name">InfoFlag</span><br/>flags TouchPoint::<span class="name">InfoFlags</span></h3>
<p>The values of this enum describe additional information about a touch point.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QTouchEvent::TouchPoint::Pen</code></td><td class="topAlign tblval"><code>0x0001</code></td><td class="topAlign">Indicates that the contact has been made by a designated pointing device (e.g&#x2e; a pen) instead of a finger.</td></tr>
<tr><td class="topAlign"><code>QTouchEvent::TouchPoint::Token</code></td><td class="topAlign tblval"><code>0x0002</code></td><td class="topAlign">Indicates that the contact has been made by a fiducial object (e.g&#x2e; a knob or other token) instead of a finger.</td></tr>
</table></div>
<p>The InfoFlags type is a typedef for <a href="../qtcore/qflags.html">QFlags</a>&lt;InfoFlag&gt;. It stores an OR combination of InfoFlag values.</p>
<!-- @@@InfoFlag -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$TouchPoint$$$TouchPointTouchPoint&& -->
<h3 class="fn" id="TouchPoint-2"><a name="TouchPoint-2"></a>TouchPoint::<span class="name">TouchPoint</span>(<span class="type">TouchPoint</span> &amp;&amp;<i>other</i>)</h3>
<p>Move-constructs a TouchPoint instance, making it point to the same object that <i>other</i> was pointing to.</p>
<!-- @@@TouchPoint -->
<!-- $$$ellipseDiameters[overload1]$$$ellipseDiameters -->
<h3 class="fn" id="ellipseDiameters"><a name="ellipseDiameters"></a><span class="type"><a href="../qtcore/qsizef.html">QSizeF</a></span> TouchPoint::<span class="name">ellipseDiameters</span>() const</h3>
<p>Returns the width and height of the bounding ellipse of this touch point. The return value is in logical pixels. Most touchscreens do not detect the shape of the contact point, so a null size is the most common value. In other cases the diameters may be nonzero and equal (the ellipse is approximated as a circle).</p>
<p>This function was introduced in Qt 5.9.</p>
<!-- @@@ellipseDiameters -->
<!-- $$$flags[overload1]$$$flags -->
<h3 class="fn" id="flags"><a name="flags"></a><span class="type"><a href="qtouchevent-touchpoint.html#InfoFlag-enum">TouchPoint::InfoFlags</a></span> TouchPoint::<span class="name">flags</span>() const</h3>
<p>Returns additional information about the touch point.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#InfoFlag-enum">QTouchEvent::TouchPoint::InfoFlags</a>.</p>
<!-- @@@flags -->
<!-- $$$id[overload1]$$$id -->
<h3 class="fn" id="id"><a name="id"></a><span class="type">int</span> TouchPoint::<span class="name">id</span>() const</h3>
<p>Returns the id number of this touch point.</p>
<p>Do not assume that id numbers start at zero or that they are sequential. Such an assumption is often false due to the way the underlying drivers work.</p>
<!-- @@@id -->
<!-- $$$lastNormalizedPos[overload1]$$$lastNormalizedPos -->
<h3 class="fn" id="lastNormalizedPos"><a name="lastNormalizedPos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">lastNormalizedPos</span>() const</h3>
<p>Returns the normalized position of this touch point from the previous touch event.</p>
<p>The coordinates are normalized to the size of the touch device, i.e&#x2e; (0,0) is the top-left corner and (1,1) is the bottom-right corner.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a>() and <a href="qtouchevent-touchpoint.html#startNormalizedPos">startNormalizedPos</a>().</p>
<!-- @@@lastNormalizedPos -->
<!-- $$$lastPos[overload1]$$$lastPos -->
<h3 class="fn" id="lastPos"><a name="lastPos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">lastPos</span>() const</h3>
<p>Returns the position of this touch point from the previous touch event, relative to the widget or <a href="../qtwidgets/qgraphicsitem.html">QGraphicsItem</a> that received the event.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#pos">pos</a>() and <a href="qtouchevent-touchpoint.html#startPos">startPos</a>().</p>
<!-- @@@lastPos -->
<!-- $$$lastScenePos[overload1]$$$lastScenePos -->
<h3 class="fn" id="lastScenePos"><a name="lastScenePos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">lastScenePos</span>() const</h3>
<p>Returns the scene position of this touch point from the previous touch event.</p>
<p>The scene position is the position in <a href="../qtwidgets/qgraphicsscene.html">QGraphicsScene</a> coordinates if the <a href="qtouchevent.html">QTouchEvent</a> is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>() and <a href="qtouchevent-touchpoint.html#startScenePos">startScenePos</a>().</p>
<!-- @@@lastScenePos -->
<!-- $$$lastScreenPos[overload1]$$$lastScreenPos -->
<h3 class="fn" id="lastScreenPos"><a name="lastScreenPos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">lastScreenPos</span>() const</h3>
<p>Returns the screen position of this touch point from the previous touch event.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>() and <a href="qtouchevent-touchpoint.html#startScreenPos">startScreenPos</a>().</p>
<!-- @@@lastScreenPos -->
<!-- $$$normalizedPos[overload1]$$$normalizedPos -->
<h3 class="fn" id="normalizedPos"><a name="normalizedPos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">normalizedPos</span>() const</h3>
<p>Returns the normalized position of this touch point.</p>
<p>The coordinates are normalized to the size of the touch device, i.e&#x2e; (0,0) is the top-left corner and (1,1) is the bottom-right corner.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#startNormalizedPos">startNormalizedPos</a>(), <a href="qtouchevent-touchpoint.html#lastNormalizedPos">lastNormalizedPos</a>(), and <a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>
<!-- @@@normalizedPos -->
<!-- $$$pos[overload1]$$$pos -->
<h3 class="fn" id="pos"><a name="pos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">pos</span>() const</h3>
<p>Returns the position of this touch point, relative to the widget or <a href="../qtwidgets/qgraphicsitem.html">QGraphicsItem</a> that received the event.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#startPos">startPos</a>(), <a href="qtouchevent-touchpoint.html#lastPos">lastPos</a>(), <a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>(), <a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>(), and <a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a>().</p>
<!-- @@@pos -->
<!-- $$$pressure[overload1]$$$pressure -->
<h3 class="fn" id="pressure"><a name="pressure"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> TouchPoint::<span class="name">pressure</span>() const</h3>
<p>Returns the pressure of this touch point. The return value is in the range 0.0 to 1.0&#x2e;</p>
<!-- @@@pressure -->
<!-- $$$rawScreenPositions[overload1]$$$rawScreenPositions -->
<h3 class="fn" id="rawScreenPositions"><a name="rawScreenPositions"></a><span class="type"><a href="../qtcore/qvector.html">QVector</a></span>&lt;<span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span>&gt; TouchPoint::<span class="name">rawScreenPositions</span>() const</h3>
<p>Returns the raw, unfiltered positions for the touch point. The positions are in native screen coordinates. To get local coordinates you can use mapFromGlobal() of the <a href="qwindow.html">QWindow</a> returned by <a href="qtouchevent.html#window">QTouchEvent::window</a>().</p>
<p><b>Note: </b>Returns an empty vector if the touch device's capabilities do not include <a href="qtouchdevice.html#CapabilityFlag-enum">QTouchDevice::RawPositions</a>.</p><p><b>Note: </b>Native screen coordinates refer to the native orientation of the screen which, in case of mobile devices, is typically portrait. This means that on systems capable of screen orientation changes the positions in this list will not reflect the current orientation (unlike <a href="qtouchevent-touchpoint.html#pos">pos</a>(), <a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>(), etc.) and will always be reported in the native orientation.</p><p>This function was introduced in Qt 5.0.</p>
<p><b>See also </b><a href="qtouchdevice.html#capabilities">QTouchDevice::capabilities</a>(), <a href="qtouchevent.html#device">device</a>(), and <a href="qtouchevent.html#window">window</a>().</p>
<!-- @@@rawScreenPositions -->
<!-- $$$rotation[overload1]$$$rotation -->
<h3 class="fn" id="rotation"><a name="rotation"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> TouchPoint::<span class="name">rotation</span>() const</h3>
<p>Returns the angular orientation of this touch point. The return value is in degrees, where zero (the default) indicates the finger or token is pointing upwards, a negative angle means it's rotated to the left, and a positive angle means it's rotated to the right. Most touchscreens do not detect rotation, so zero is the most common value.</p>
<p>This function was introduced in Qt 5.8.</p>
<!-- @@@rotation -->
<!-- $$$scenePos[overload1]$$$scenePos -->
<h3 class="fn" id="scenePos"><a name="scenePos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">scenePos</span>() const</h3>
<p>Returns the scene position of this touch point.</p>
<p>The scene position is the position in <a href="../qtwidgets/qgraphicsscene.html">QGraphicsScene</a> coordinates if the <a href="qtouchevent.html">QTouchEvent</a> is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#startScenePos">startScenePos</a>(), <a href="qtouchevent-touchpoint.html#lastScenePos">lastScenePos</a>(), and <a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>
<!-- @@@scenePos -->
<!-- $$$screenPos[overload1]$$$screenPos -->
<h3 class="fn" id="screenPos"><a name="screenPos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">screenPos</span>() const</h3>
<p>Returns the screen position of this touch point.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#startScreenPos">startScreenPos</a>(), <a href="qtouchevent-touchpoint.html#lastScreenPos">lastScreenPos</a>(), and <a href="qtouchevent-touchpoint.html#pos">pos</a>().</p>
<!-- @@@screenPos -->
<!-- $$$startNormalizedPos[overload1]$$$startNormalizedPos -->
<h3 class="fn" id="startNormalizedPos"><a name="startNormalizedPos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">startNormalizedPos</span>() const</h3>
<p>Returns the normalized starting position of this touch point.</p>
<p>The coordinates are normalized to the size of the touch device, i.e&#x2e; (0,0) is the top-left corner and (1,1) is the bottom-right corner.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#normalizedPos">normalizedPos</a>() and <a href="qtouchevent-touchpoint.html#lastNormalizedPos">lastNormalizedPos</a>().</p>
<!-- @@@startNormalizedPos -->
<!-- $$$startPos[overload1]$$$startPos -->
<h3 class="fn" id="startPos"><a name="startPos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">startPos</span>() const</h3>
<p>Returns the starting position of this touch point, relative to the widget or <a href="../qtwidgets/qgraphicsitem.html">QGraphicsItem</a> that received the event.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#pos">pos</a>() and <a href="qtouchevent-touchpoint.html#lastPos">lastPos</a>().</p>
<!-- @@@startPos -->
<!-- $$$startScenePos[overload1]$$$startScenePos -->
<h3 class="fn" id="startScenePos"><a name="startScenePos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">startScenePos</span>() const</h3>
<p>Returns the starting scene position of this touch point.</p>
<p>The scene position is the position in <a href="../qtwidgets/qgraphicsscene.html">QGraphicsScene</a> coordinates if the <a href="qtouchevent.html">QTouchEvent</a> is handled by a QGraphicsItem::touchEvent() reimplementation, and identical to the screen position for widgets.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#scenePos">scenePos</a>() and <a href="qtouchevent-touchpoint.html#lastScenePos">lastScenePos</a>().</p>
<!-- @@@startScenePos -->
<!-- $$$startScreenPos[overload1]$$$startScreenPos -->
<h3 class="fn" id="startScreenPos"><a name="startScreenPos"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> TouchPoint::<span class="name">startScreenPos</span>() const</h3>
<p>Returns the starting screen position of this touch point.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#screenPos">screenPos</a>() and <a href="qtouchevent-touchpoint.html#lastScreenPos">lastScreenPos</a>().</p>
<!-- @@@startScreenPos -->
<!-- $$$state[overload1]$$$state -->
<h3 class="fn" id="state"><a name="state"></a><span class="type"><a href="../qtcore/qt.html#TouchPointState-enum">Qt::TouchPointState</a></span> TouchPoint::<span class="name">state</span>() const</h3>
<p>Returns the current state of this touch point.</p>
<!-- @@@state -->
<!-- $$$uniqueId[overload1]$$$uniqueId -->
<h3 class="fn" id="uniqueId"><a name="uniqueId"></a><span class="type"><a href="qpointingdeviceuniqueid.html">QPointingDeviceUniqueId</a></span> TouchPoint::<span class="name">uniqueId</span>() const</h3>
<p>Returns the unique ID of this touch point or token, if any.</p>
<p>It is normally invalid (see <a href="qpointingdeviceuniqueid.html#isValid">isValid()</a>), because touchscreens cannot uniquely identify fingers. But when the <a href="qtouchevent-touchpoint.html#InfoFlag-enum">Token</a> flag is set, it is expected to uniquely identify a specific token (fiducial object).</p>
<p>This function was introduced in Qt 5.8.</p>
<p><b>See also </b><a href="qtouchevent-touchpoint.html#flags">flags</a>.</p>
<!-- @@@uniqueId -->
<!-- $$$velocity[overload1]$$$velocity -->
<h3 class="fn" id="velocity"><a name="velocity"></a><span class="type"><a href="qvector2d.html">QVector2D</a></span> TouchPoint::<span class="name">velocity</span>() const</h3>
<p>Returns a velocity vector for this touch point. The vector is in the screen's coordinate system, using pixels per seconds for the magnitude.</p>
<p><b>Note: </b>The returned vector is only valid if the touch device's capabilities include <a href="qtouchdevice.html#CapabilityFlag-enum">QTouchDevice::Velocity</a>.</p><p><b>See also </b><a href="qtouchdevice.html#capabilities">QTouchDevice::capabilities</a>() and <a href="qtouchevent.html#device">device</a>().</p>
<!-- @@@velocity -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
